<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head  th:replace="Administrator/main/publics :: #public_style">
    <!--th:href="@{/css/AdministratorStyle.css}"好处是可以动态获取引用路径更方便-->
    <!--<link rel="stylesheet" href="Untitled-1.css">-->
</head>
<body class="publicbody">
<header class="header1" th:replace="Administrator/main/publics :: #public_header">

</header>

<section class="public_main">

    <!-- <nav> 标签定义导航链接的部分。 -->
    <div class="left" th:replace="Administrator/main/publics :: #public_left">

    </div>

    <form id="searchForm" th:action="@{/student}" th:method="get" action="/student" method="get">
    <div class="search">
        <span>学生名称：</span>
        <input type="text" th:value="${studentName}"  name="name" placeholder="请输入学生名字"/>
        <!--获取表单id，并用submit提交-->
        <input type="button" onclick="$('#searchForm').submit()" value="查询"/>

        <a th:href="@{/students}" href="/students">添加学生</a>
    </div>
</form>
    <table class="studentright" border="1" >
        <caption><h1>学生信息管理</h1></caption>
        <tr class="studenttr1">
            <th>学生编码</th>
            <th>学生姓名</th>
            <th>年龄</th>
            <th>登录名</th>
            <th>密码</th>
            <th>邮箱</th>
            <th>毕设题目</th>
            <th>电话</th>
            <th>学院</th>
            <th>职务</th>
            <th>操作</th>

        </tr>
        <tr class="studenttr2" th:each="s : ${students}" >
            <td th:text="${s.getId()}">1</td>
            <td th:text="${s.getName()}">zlj</td>
            <td th:text="${s.getAge()}">12</td>
            <td th:text="${s.getLoginUserName()}">zzz</td>
            <td th:text="${s.getPassword()}">12222</td>
            <td th:text="${s.getEmail()}">dd</td>
            <td th:text="${s.getDesignTopic()}">dd</td>
            <td th:text="${s.getNumber()}">dd</td>
            <td th:text="${s.getColleague()}">dd</td>
            <td th:text="${s.getDuty()}">dd</td>
            <td>
                <!--得到路径，进行拼接-->
                <a th:href="@{/student/}+${s.id}" hre="../personnalInformationModule/studentinformationmanagementview.html"><img src="/img/read.png" alt="查看" title="查看"/></a>
                <a th:href="@{/student/}+${s.id}+'?type=studentinformationmanagementupdate'" href="/provider/1?type=update"><img src="/img/xiugai.png" alt="修改" title="修改"/></a>
                <a th:attr="del_uri=@{/students/}+${s.id}" href="#" class="delete" del_uri="/provider/1" ><img src="/img/schu.png" alt="删除" title="删除"/></a>
            </td>

        </tr>


    </table>

</section>
<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<form method="post" id="deleteForm" >
    <input type="hidden" name="_method" value="delete">

    <div class="remove" id="removeProv">
        <div class="removerChid">
            <h2>提示</h2>
            <div class="removeMain" >
                <p>你确定要删除吗？</p>
                <a href="#" id="yes">确定</a>
                <a href="#" id="no">取消</a>
            </div>
        </div>
    </div>

</form>
<!-- <a> 标签的 target 属性规定在何处打开链接文档。
    属性：
_blank	在新窗口中打开被链接文档。
_self	默认。在相同的框架中打开被链接文档。
_parent	在父框架集中打开被链接文档。
_top	在整个窗口中打开被链接文档。
framename	在指定的框架中打开被链接文档。
 -->
<footer class="footer" id="public_footer" th:replace="Administrator/main/publics :: #public_footer">

</footer>
<script src="../js/jquery.js"></script>

<script th:src="@{/js/jquery.js}" src="../js/jquery.js"></script>

<script th:src="@{/js/js.js}" src="../js/js.js"></script>
</body>
</html>